#include "SQLColumnUniqueKey.h"

#include "../../visitor/SQLASTVisitor.h"

SQLColumnUniqueKey::SQLColumnUniqueKey()
{
}

void SQLColumnUniqueKey::accept0(SQLASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(SQLColumnUniqueKey)))
  {
    acceptChild(visitor, this->getName());
  }
  visitor->endVisit(SharedObject(SQLColumnUniqueKey));
}

SQLObject_ptr SQLColumnUniqueKey::clone()
{
    SQLObject_ptr clone_tmp = SQLColumnUniqueKey_ptr(new SQLColumnUniqueKey());
    SQLColumnUniqueKey_ptr x = std::dynamic_pointer_cast<SQLColumnUniqueKey>(clone_tmp);
  // SQLColumnUniqueKey *x = new SQLColumnUniqueKey();
  SQLConstraintImpl::cloneTo(std::dynamic_pointer_cast<SQLConstraintImpl>(x));
  return x;
}
